Any suggestions on this code?

#include <Servo.h>
#define NBR_SERVOS 3
#define FIRST_SERVO_PIN 8
Servo myservo;
Servo leftServo;
Servo rightServo;
int pos = 90;
int pos1 = 90;
int pos2 = 0;
int pingPin = 4;
const int ledPin = 13;
int rightDist;
int leftDist;

int launchPing()
{  
    pinMode(pingPin, OUTPUT);   //|||
    digitalWrite(pingPin, LOW); //|||
    delayMicroseconds(2);       //giving short burst telling Ping to Send distance
    digitalWrite(pingPin, HIGH);//|||
    delayMicroseconds(5);       //|||
    digitalWrite(pingPin, LOW); //|||
    pinMode(pingPin, INPUT);    // make Ping an input
    return pulseIn(pingPin,HIGH);
}

void setup()
{
  Serial.begin(9600);
  pinMode (ledPin, OUTPUT);
  myservo.attach(5);
  leftServo.attach(7);
  rightServo.attach(6);

}

void loop()
{
  pos1=0;
  pos2=70;
  leftServo.write(pos1);
  rightServo.write(pos2);
  long duration, inches, cm;
  duration = launchPing();
  inches = microsecondsToInches(duration);
  cm = microsecondsToCentimeters(duration);

  
  Serial.print(inches);
  Serial.print("in, ");
  
  //Serial.print(cm);
  //Serial.print("cm");
  //Serial.println();
   
   if (inches >= 10) {
    digitalWrite (ledPin, LOW);
    pos=95;
    myservo.write(pos);
  }
  else {
     pos1=45;
     pos2=45;
     leftServo.write(pos1);
     rightServo.write(pos2);//stops wheel servos
    
    digitalWrite (ledPin, HIGH);
    delay(250);
    
    //start of left scan
    pos = 177;
    myservo.write(pos);
    delay(1000);
    duration = launchPing();
    inches = microsecondsToInches(duration); //converting time into distance
    //cm = microsecondsToCentimeters(duration);//converting time into distance
    rightDist = inches;
    Serial.print("right duration = ");//|||
    Serial.print(duration);//sends serial data to computer
    Serial.println();    //|||
    // end of leftt scan
    
    //beginning of right scan 
    pos = 14;
    myservo.write(pos);
    delay(1000);
    duration = launchPing();
    inches = microsecondsToInches(duration); //converting time into distance
    //cm = microsecondsToCentimeters(duration);//converting time into distance
    leftDist = inches;
    Serial.print("left duration = ");//|||
    Serial.print(duration);//sends serial data to computer
    Serial.println();    //|||
    //end of right scan
    
    //beginning of mathematics to determine which direction gives robot 
    //the optimal distance to travel before another object
    if (leftDist < rightDist) {
      Serial.print("right side is longer");
      pos1=0;
      leftServo.write(pos1);
      pos=95;
      myservo.write(pos);
      delay(1500);//wait for servo
    }
    else {  
      Serial.print("left side is longer");
      pos2=90;
      rightServo.write(pos2);
      pos=95;
      myservo.write(pos);
      delay(1500);//wait for servo
  }

 }
 delay(50); 
}

long microsecondsToInches(long microseconds)
{
  return microseconds / 74/ 2;
}
/*
long microsecondsToCentimeters(long microseconds)
{
  return microseconds / 29 / 2;
}

Is it possible to make this more cleaner than it is? Or any code optimization for this?

You could get rid of the centimetre calculation; you never use it.